package com.dw.service;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.AfterClass;
public class Demo01Test_BeforeClass {
	 static Demo01 d;
	
	public Demo01Test_BeforeClass(){
		  System.out.println("DemoTest对象创建");
	  }
	
	  @BeforeClass
      public static void beforeClass(){
		  d=new Demo01();
		  System.out.println("beforeClass方法执行....");
      }
	  
	 @Before
	public void  before(){
		System.out.println("beforeTest方法执行....");
	}
	 
	 @Test
	 public void test01(){
		 System.out.println("test01方法执行...."+d);
	 }
	 
	 @Test
	 public void test02(){
		 System.out.println("test02方法执行...."+d);
	 }
	 
	 @Test
	 public void test03(){
		 System.out.println("test03方法执行...."+d);
	 }
	 
	  @After
	 public void after(){
		  System.out.println("after方法执行....");
	 }
	  
	   @AfterClass
	  public static void AfterClass(){
		   System.out.println("afterClass方法执行....");
	  }

}











